package com.community.body.mapper;

import com.community.body.domain.ZyOwnerRoom;
import com.community.body.domain.ZyOwnerRoomRecord;
import com.community.body.dto.CheckDTO;
import com.community.body.vo.BindingVO;
import com.community.body.vo.EchartsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 房屋绑定 Mapper接口
 * 
 * @author community
 * @date 2024-04-11
 */
public interface ZyOwnerRoomMapper 
{
    /**
     * 查询房屋绑定 
     * 
     * @param ownerRoomId 房屋绑定 主键
     * @return 房屋绑定 
     */
    public ZyOwnerRoom selectZyOwnerRoomByOwnerRoomId(Long ownerRoomId);

    /**
     * 查询房屋绑定 列表
     * 
     * @param checkDTO 房屋绑定
     * @return 房屋绑定 集合
     */
    public List<CheckDTO> selectZyOwnerRoomList(CheckDTO checkDTO);

    /**
     * 新增房屋绑定 
     * 
     * @param zyOwnerRoom 房屋绑定 
     * @return 结果
     */
    public int insertZyOwnerRoom(ZyOwnerRoom zyOwnerRoom);

    /**
     * 修改房屋绑定 
     * 
     * @param zyOwnerRoom 房屋绑定 
     * @return 结果
     */
    public int updateZyOwnerRoom(ZyOwnerRoom zyOwnerRoom);

    /**
     * 删除房屋绑定 
     * 
     * @param ownerRoomId 房屋绑定 主键
     * @return 结果
     */
    public int deleteZyOwnerRoomByOwnerRoomId(Long ownerRoomId);

    /**
     * 批量删除房屋绑定 
     * 
     * @param ownerRoomIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZyOwnerRoomByOwnerRoomIds(Long[] ownerRoomIds);

    void updateZyOwnerRoom1(ZyOwnerRoomRecord zyOwnerRoomRecord);

    void insertZyOwnerRoom1(ZyOwnerRoomRecord zyOwnerRoomRecord);

    Long selectZyOwnerRoomOne(ZyOwnerRoomRecord zyOwnerRoomRecord);

    List<BindingVO> getStatusList(ZyOwnerRoom zyOwnerRoom);

}
